<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

class wxapi_ctl_admin_logo extends desktop_controller
{
    public function apple()
    {
        if($_POST) {
            $this->begin();
            $logoM5id = $_POST['wxapps']['logo'];
            app::get('wxapi')->setConf('wxapps.logo',$logoM5id);
            $this->end(true,'保存成功');
        }
        $logoM5id = app::get('wxapi')->getConf('wxapps.logo');
        $logoM5id = base_storager::image_path($logoM5id);
        $this->pagedata['wxapps']['logo'] =$logoM5id;
        $this->page('admin/logo.html');
    }
}